package com.ruoyi.system.service.h5.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.MiniOrder;
import com.ruoyi.system.domain.vo.HomeStatisticsVO;
import com.ruoyi.system.service.h5.MiniOrderService;
import com.ruoyi.system.mapper.MiniOrderMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
    * @author 李鼎
* @description 针对表【mini_order(订单表)】的数据库操作Service实现
* @createDate 2023-11-24 09:44:28
*/
@Service
public class MiniOrderServiceImpl extends ServiceImpl<MiniOrderMapper, MiniOrder>
    implements MiniOrderService{

    @Override
    public HomeStatisticsVO selectStatisticsInfo(String startTime, String endTime) {
        return this.getBaseMapper().selectStatisticsInfo(startTime, endTime);
    }
    /**
     * 查询订单
     *
     * @param id 订单主键
     * @return 订单
     */
    @Override
    public MiniOrder selectMiniOrderById(Long id)
    {
        return this.getBaseMapper().selectMiniOrderById(id);
    }

    /**
     * 查询订单列表
     *
     * @param miniOrder 订单
     * @return 订单
     */
    @Override
    public List<MiniOrder> selectMiniOrderList(MiniOrder miniOrder)
    {
        return this.getBaseMapper().selectMiniOrderList(miniOrder);
    }
}




